function checkFolder( folder )
    path = dir( folder );
    if isempty( path )
        system( ['mkdir "' folder '"'] );
    end